package TamirsGui;

import java.util.Vector;

import javax.swing.SwingWorker;


public class MainWindowSwingWorker extends SwingWorker<Vector<GuiMessage>, String>{

	Vector<GuiMessage> result;
	String serverMessage;
	public MainWindowSwingWorker(String serverString){
		this.serverMessage = serverString;
	}
	@Override
	protected Vector<GuiMessage> doInBackground() throws Exception {
		MainWindowMsg parser =  new MainWindowMsg();
		result = parser.parseMessage(this.serverMessage);
		return result;
	}

}
